import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:industry_net/base/common/util.dart';
import 'package:industry_net/base/component/component.dart';

class RegisterSuccessPage extends StatelessWidget {
  const RegisterSuccessPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: presentAppBar(context),
        backgroundColor: ColorsUtil.white,
        body: Padding(
          padding: EdgeInsets.symmetric(horizontal: 31.w),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              SizedBox(
                height: 51.w,
              ),
              Image.asset(
                'icon_success.png'.imgPathMe,
                width: 130.w,
                height: 126.w,
              ),
              SizedBox(
                height: 27.w,
              ),
              Text(
                '恭喜您，注册成功！',
                style: pfSCStyle(color: ColorsUtil.title, fontSize: font17),
              ),
              SizedBox(
                height: 73.w,
              ),
              ExpandedButton(
                text: '填写详细信息',
                onPressed: Get.back,
              ),
              SizedBox(
                height: 20.w,
              ),
              Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Text(
                    '暂不填写，',
                    style: pfMediumStyle(
                      color: ColorsUtil.content,
                      fontSize: font14,
                    ),
                  ),
                  GestureDetector(
                    onTap: Get.back,
                    child: Text(
                      '去登录',
                      style: pfMediumStyle(
                          color: ColorsUtil.blue, fontSize: font14),
                    ),
                  )
                ],
              )
            ],
          ),
        ));
  }
}
